﻿<%@ Page Language="C#" %>
<%System.Data.DataTable dttest = Aspfm.Html.AspfmWeb.GetAspfmDataTable("aliyun", 1, 10, "SELECT * FROM [aspfm_news]", "order by newguid"); %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<%=Aspfm.Main.PageTool.GetAspx("Aspfm.JSPlugin/BaseHead.aspx")%>
<body> <div id="Aspfmbackground"></div>
    <input type="button" title="login" onclick="onBtnBUTTON3()" />
    <% for (int i = 0; i < dttest.Rows.Count;i++ ) { %>
        <%=Aspfm.Html.AspfmWeb.GetValue(dttest, i, "newguid")%>
    <%} %>
    <%= Aspfm.Html.AspfmWeb.GetUrlValue("Name") %>
    <iframe height="100%" width="100%" id="main" src="11.aspx" frameborder="0"> </iframe>



    <script>
        var _path = "<%=Aspfm.Main.PageTool.GetWebBaseUrl() %>";
Aspfm.Data.fm = new Object();
            Aspfm.Data.fm.aaa = "123";
//alert(Aspfm.Data.fm.aaA);
        //alert(Aspfm.Data.fm.aaa);
        //WriteLogSql("sdsdfsf", "sdfsdf");


            function CheckRightCode(rightCode) {
                return ajaxPsotActive("Aspfm.Main", "Aspfm.Main.AspfmRightCode", "checkrightcode", rightCode);
            }


            function onBtnBUTTON3() {
                CheckRightCode("123").done(function (resdata) {
                    alert(resdata);
                });



//                //var aa = GetPkOrderId("SEQ_BJ_00_BASEINFO",4);
//                // alert(aa);
//                ajaxPsotActive("Aspfm.Login", "Aspfm.Login.Login", "login", null);
//            
//                var user=new Object();
//                user.userid="#aaa";
//                user.pwd="bbb";
//                user.connkey="default";
//            $.post(GetLoginUrl("http://localhost:31363/AspfmAshx.ashx"), user, function (response) {
//                var AspfmToken=response;
//                var returnurl=encodeURI("http://localhost/Aspfm2/WebForm1.aspx");
//                location.href="http://localhost:31363/AspfmAshx.ashx?AspfmToken="+AspfmToken+"&returnurl="+returnurl;
//            });
        }
        function GetLoginUrl(url) {
            if(!(url))
            {
                url = serverurl();
            }
            return url +"?fmparams.Dll=Aspfm.Login&fmparams.Class=Aspfm.Login.Login&fmparams.Active=login";
        }
        function aafunc(bb)
        {
            alert(bb);
        }
    </script>
</body>
</html>
